package cn.kust.microtourismcommon.constant;


import lombok.Getter;


public enum CommonStatusEnum {





    /**
     *验证码错误： 1000-1099
     */
    VERIFICATION_CODE_ERROR(1099, "验证码不正确"),
    /**
     * 网关验证，Token提示 1100 -1199
     */
    TOKEN_ERROR(1119, "token错误"),
    TOKEN_IS_EMPTY(1120, "token为空"),
    ILLEGAL_URL_ERROR(1121,"请求未通过验证，检查是否为白名单对象或者检查token情况或请求参数异常或传入的值为空"),


    /**
     * 用户提示： 1200-1299
     */
    USER_NOT_EXIST(1200, "当前用户不存在"),
    USER_ID_LIST_EMPTY(1201, "用户id表为空"),
    USER_UPLOAD_ERROR(1202, "用户上传失败"),
    USER_DELETE_ERROR(1203,"用户删除失败"),
    USER_NAME_ALL_READY_EXISTS_ERROR(1204,"用户名已存在"),
    USER_PHONE_ALL_READY_EXISTS_ERROR(1204,"电话号码已经存在了"),
    USER_UPDATE_ERROR(1205,"用户信息修改失败"),
    USER_TOKEN_ARGS_ERROR(1206,"修改用户信息必须携带的token中的id与用户id一致"),




    /**
     * 关注服务： 1300 -1399
     */
    FOLLW_DELETE_ERROR(1300,"关注信息删除失败"),
    FOLLW_INSRTE_ERROR(1301,"关注信息插入失败"),
    FOLLOW_ALLREADY_FOLLOWED(1302,"已经关注过该用户"),
    FOLLOW_NONRELATION(1303,"未关注过该用户，取消失败"),
    FOLLOW_INDEX_ERROR(1304,"传参错误"),


    SUCCESS(200,"success"),
    FAIL(404,"fail")

    ;
    @Getter
    private int code;
    @Getter
    private String value;

    CommonStatusEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }
}
